<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <div data-th-replace="layout/head-top"></div>
</head>
<body>
    <div class="m-t-lg">
        <dl class="dl-horizontal">
            <dt>用户名：</dt>
            <dd class="m-r"><span class="fs12 c-4e" th:text="${sysUser['ralName']}"></span></dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>账号名：</dt>
            <dd class="m-r"><span class="fs12 c-4e" th:text="${sysUser['username']}"></span></dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>手机号：</dt>
            <dd class="m-r"><span class="fs12 c-4e" th:text="${sysUser['mobile']}"></span></dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>用户类型：</dt>
            <dd class="m-r">
                <span th:if="${sysUser['userType']}==1" class="fs12 c-4e">正式管理员</span>
                <span th:if="${sysUser['userType']}==2" class="fs12 c-4e">体验管理员</span>
                <span th:if="${sysUser['userType']}==3" class="fs12 c-4e">问答讲师</span>
                <span th:if="${sysUser['userType']}==4" class="fs12 c-4e">分销用户</span>
            </dd>
        </dl>
        <div th:if="${sysUser['userType']}==1" class="hr-line-dashed"></div>
        <dl th:if="${sysUser['userType']}==1" class="dl-horizontal">
            <dt>所属部门：</dt>
            <dd class="m-r"><span class="fs12 c-4e" th:text="${sysUser['sysGroup']}==null?'—':${sysUser['sysGroup']['groupName']}"></span></dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>角色：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:if="!${#lists.isEmpty(sysUser['sysRoleList'])}" th:each="role : ${sysUser['sysRoleList']}">
                    <p th:text="${role.roleName}"></p>
                </span>
                <span class="fs12 c-4e" th:if="${#lists.isEmpty(sysUser['sysRoleList'])}">—</span>
            </dd>
        </dl>
        <div th:if="${sysUser['userType']}==2" class="hr-line-dashed"></div>
        <dl th:if="${sysUser['userType']}==2" class="dl-horizontal">
            <dt>体验到期时间：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${sysUser['endTime']}!=null ?${sysUser['endTime']} : '—'">
                </span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>创建人：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${sysUser['sysCreateUser']}==null ? '—':${sysUser['sysCreateUser']['username']}">
                </span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>状态：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e">
                    <span th:if="${sysUser['status']}==0" class="label label-danger">未批准</span>
                    <span th:if="${sysUser['status']}==1" class="label label-info">正常</span>
                    <span th:if="${sysUser['status']}==2" class="label label-danger">禁用</span>
                </span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <th:block th:if="${#lists.isEmpty(sysFunctionList)}">
            <dl class="dl-horizontal">
                <dt>系统权限：</dt>
                <dd class="m-r"><span class="fs12 c-4e">—</span></dd>
            </dl>
            <div class="hr-line-dashed"></div>
        </th:block>
        <th:block th:if="!${#lists.isEmpty(sysFunctionList)}">
            <dl class="dl-horizontal" th:each="function : ${sysFunctionList}">
                <dt th:text="${function['functionName']}+'权限：'"></dt>
                <dd class="m-r">
                    <ul class="tag-list clearfix">
                        <li class="ml10 mb10" th:each="child : ${function['childSysFunctionList']}" th:if="${function['childSysFunctionList']}!=null and ${#lists.size(function['childSysFunctionList'])}>0">
                            <span>
                                <i class="fa fa-circle text-danger"></i>
                                <span th:text="${child['functionName']}"></span>
                            </span>
                        </li>
                        <li class="ml10 mb10" th:if="${function['childSysFunctionList']}==null or ${#lists.size(function['childSysFunctionList'])}==0">
                            <span>
                                <span th:text="${function['functionName']}+'权限无子级权限'"></span>
                            </span>
                        </li>
                    </ul>
                </dd>
            </dl>
            <div class="hr-line-dashed"></div>
        </th:block>
    </div>
</body>
</html>
